package com.xd.core.business.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 抵押表
 * </p>
 *
 * @author ZX
 * @since 2025-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Mortgage对象", description="抵押表")
public class Mortgage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "抵押id")
    @TableId(value = "mortgage_id", type = IdType.AUTO)
    private Integer mortgageId;

    @ApiModelProperty(value = "抵押订单号")
    private String orderNo;

    @ApiModelProperty(value = "抵押状态(0--待办理,1--办理中,2--已办理)")
    private String status;

    @ApiModelProperty(value = "抵押资料")
    private String annex;

    @ApiModelProperty(value = "办理开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "办理结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "进件id")
    private Integer incomingId;

    @ApiModelProperty(value = "放款id")
    private Integer outId;

    @ApiModelProperty(value = "抵押物")
    private String mortgage;

    @ApiModelProperty(value = "更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "抵押合同id")
    private Integer mortgageContractId;

    @TableField(exist = false)
    @ApiModelProperty(value = "订单状态(0--启用,1--停用)")
    private String isEnable;


}
